<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<jsp:useBean id="MESSAGE" class="java.lang.String" scope="request"/>
<title>Bookstore</title>
<script>
function Update()
	{
		document.forms[0].call.value = 'updateDescription';
		document.forms[0].submit();
	}
	
	function Delete()
	{
		document.forms[0].call.value = 'delete';
		document.forms[0].submit();
	}	
	function Back()
	{
		document.forms[0].call.value = 'load';
		document.forms[0].submit();
	}
	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/bookstore/default.css" />
</head>
<body bgcolor="maroon" scrol="no" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (all.psd) -->
<table id="Table_01" width="718"  border="0" cellpadding="0" cellspacing="0" align=center>
	<tr>
		<td colspan="3">
		<img src="/bookstore/images/all_01.jpg" width="718" height="167" alt="">	
		</td>
	</tr>
	<tr>
		<td>
			<div id="menu" align=center>	
					<jsp:include page="adminmenu.jsp"/>
		  </div>	
		</td>
	</tr>
	<tr>
		<td colspan="3">
		<div id="content">	
		
<form method="post" action="/bookstore/uploaditem.do" enctype="multipart/form-data" >

 <html:hidden name="UploadItemForm" property="shopid" />
  <html:hidden name="UploadItemForm" property="imageId" />
 
 <input type="hidden" name="call" value="updateDescription" />
 



<p class="pheading1">Modify Book Details</p>

<table cellpadding="0" cellspacing="5" class=contentable>
<tr>
       <td><span class="pheading2" style="padding-left:0">Current Selection:</span></td>
       <td>
	   <bean:define id="shopid"  name="UploadItemForm" property="shopid"/>
	   <bean:define id="imageid"  name="UploadItemForm" property="imageId"/>
	   
	   
		<img style="border:1px solid gray;margin-left:4px;" height="100px" width="85px" valign="middle" 
		src="<%= ("gallery/" +shopid+ "/thumb_" + imageid) %>" ></img>
		</td>
</tr>
<tr>
       <td></td>
       <td></td>
</tr>
<tr>
       <td>Name</td>
       <td><html:text name="UploadItemForm" property="name"></html:text></td>
</tr>
<tr>
       <td>ISBN</td>
       <td><html:text name="UploadItemForm" property="isbn"></html:text></td>
</tr>
<tr>
       <td>Publisher</td>
       <td><html:text name="UploadItemForm" property="publisher"></html:text></td>
</tr>
<tr>
       <td>Author</td>
       <td><html:text name="UploadItemForm" property="author"></html:text></td>
</tr>
<tr>
       <td>Year of Publishing</td>
       <td><html:text name="UploadItemForm" property="year"></html:text></td>
</tr>
<tr>
       <td>Edition</td>
       <td><html:text name="UploadItemForm" property="edition"></html:text></td>
</tr>
<tr>
       <td>Price</td>
       <td><html:text name="UploadItemForm" property="price"></html:text></td>
</tr>
<tr>
       <td>Description</td>
       <td>
			<html:textarea rows="5" cols="30" name="UploadItemForm" property="description"></html:textarea>
		</td>
</tr>

<tr>
       <td>&nbsp;</td>
       <td>
			
	   </td>
</tr>

<tr>
       <td>&nbsp;</td>
       <td>
			<input type="button" class=btn onClick="Update()" value="Update" /> &nbsp;&nbsp;
			<input type="button" class=btn onClick="Delete()" value="Delete" />&nbsp;&nbsp;
			<input type="button" class=btn onClick="Back()" value="Back" />
	   </td>
</tr>

</table>


</form>

		</div>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div id=footer><img src="/bookstore/images/all_06.jpg" width="718" height="17" alt="">
			</div>
			</td>
	</tr>
	
</table>
<!-- End ImageReady Slices -->
</body>
</html>